<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2016-07-25 06:28:32, compiled from ../app/web/template/admin/login.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>风险管理平台</title>
<link href="<?php echo STATIC_PATH;?>css/admin/themes/css/login.css" rel="stylesheet" type="text/css" />
<script src="<?php echo STATIC_PATH;?>js/admin/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$("#loginForm").submit(function(){
		$(".er_show").html('');
		var n = $("[name=username]").val();
		var p = $("[name=password]").val();
		var urls ='<?php echo DOOR_PATH;?>admin.php?c=login&a=ajaxLogin';
		var yes = true;
		if(n != ''){
			if(p != ''){
				// $.post(
				// 	url,
				// 	{username:n,password:p},
				// 	function(data){
				// 		if(data.status == 300){
				// 			$(".er_show").html(data.msg);
				// 			yes = false;
				// 		}
				// 	},'json');
				$.ajax({
	                type: "POST", 
	                url: urls, 
	                data: {username:n,password:p},
	                async: false, 
	                dataType: "json",
	                success: function (data) {
	                	if(data.status == 300){
	                       $(".er_show").html(data.message);
							yes = false;
	                    }

	                }
	            });
				if(yes == false){
					return false;
				}
			}else{
				$(".er_show").html("密码不可为空");
				return false;
			}
		}else{
			$(".er_show").html("用户名不可为空");
			return false;
		}
	})
})
</script>
</head>

<body>
	<div id="login">
		<div id="login_header">
			<h1 class="login_logo">
				<a href="http://demo.dwzjs.com"><img src="<?php echo STATIC_PATH;?>css/admin/themes/default/images/login_logo.gif" /></a>
			</h1>
			<div class="login_headerContent">
				<div class="navList">
					<ul>
						<li><a href="#">设为首页</a></li>
						<li><a href="http://bbs.dwzjs.com">反馈</a></li>
						<li><a href="doc/dwz-user-guide.pdf" target="_blank">帮助</a></li>
					</ul>
				</div>
				<h2 class="login_title"><img src="<?php echo STATIC_PATH;?>css/admin/themes/default/images/login_title.png" /></h2>
			</div>
		</div>
		<div id="login_content">
			<div class="loginForm"><!--<?php echo $logindo; ?>-->
				<form action="" id="loginForm" method="post">
					<p>
						<label>用户名：</label>
						<input type="text" name="username" size="20" value="<?php echo $showError['name'];?>" class="login_input" />
					</p>
					<p>
						<label>密码：</label>
						<input type="password" name="password" size="20" class="login_input" />
					</p>
					<p style="color:red;">
						<label>&nbsp;</label>
						<span class="er_show"><?php echo $showError['msg'];?></span>
						
					</p>
				<!-- 	<p>
						<label>验证码：</label>
						<input class="code" type="text" size="5" />
						<span><img src="../app/static/css/admin/themes/default/images/header_bg.png" alt="" width="75" height="24" /></span>
					</p> -->
					<div class="login_bar">
						<input class="sub" type="submit" value=" " />
					</div>
				</form>
			</div>
			<div class="login_banner"><img src="<?php echo STATIC_PATH;?>css/admin/themes/default/images/login_banner.jpg" /></div>
			<div class="login_main">
				<ul class="helpList">
					<li><a href="#">下载驱动程序</a></li>
					<li><a href="#">如何安装密钥驱动程序？</a></li>
					<li><a href="#">忘记密码怎么办？</a></li>
					<li><a href="#">为什么登录失败？</a></li>
				</ul>
				<div class="login_inner">
					<p>您可以使用 网易网盘 ，随时存，随地取</p>
					<p>您还可以使用 闪电邮 在桌面随时提醒邮件到达，快速收发邮件。</p>
					<p>在 百宝箱 里您可以查星座，订机票，看小说，学做菜…</p>
				</div>
			</div>
		</div>
		<div id="login_footer">
			Copyright &copy; 2009  Inc. All Rights Reserved.
		</div>
	</div>
</body>
</html>